package com.iotechn.unimall.app.api.examineAndApprove;

import com.dobbinsoft.fw.core.Const;
import com.dobbinsoft.fw.core.annotation.HttpMethod;
import com.dobbinsoft.fw.core.annotation.HttpOpenApi;
import com.dobbinsoft.fw.core.annotation.HttpParam;
import com.dobbinsoft.fw.core.annotation.HttpParamType;
import com.dobbinsoft.fw.core.annotation.param.NotNull;
import com.dobbinsoft.fw.core.exception.ServiceException;

@HttpOpenApi(group = "examineAndApprove", description = "入会申请")
public interface ExamineAndApproveService {

    @HttpMethod(description = "添加审批")
    public String create(
            @NotNull @HttpParam(name = "associationId", type = HttpParamType.COMMON, description = "协会id") Long associationId,
            @NotNull @HttpParam(name = "enterpriseId", type = HttpParamType.COMMON, description = "企业id") Long enterpriseId,
            @NotNull @HttpParam(name = "type", type = HttpParamType.COMMON, description = "审批类型（1-入会，2-解除）") Integer type,
            @HttpParam(name = Const.USER_ACCESS_TOKEN, type = HttpParamType.HEADER, description = "访问令牌") String accessToken,
            @NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "用户Id") Long userId
    ) throws ServiceException;


}
